home *** CD-ROM | disk | FTP | other *** search
/ The Supreme Court / The Supreme Court.iso / pc / macutils / compress / ziputils / macgzip1 / mac_docs / macgzip_.faq < prev   
Text File  |  1995-02-04  |  4KB  |  99 lines

  1. • I don't like the interface / I'd like batch processing
  2.  
  3. If you don't want to use the menus to change mode and process, use the Drag & Drop mode:
  4.  
  5.  
  6. 1: If the files you want to compress/uncompress are in the same folder, select 
  7. them all from the Finder and Drag & Drop them on MacGzip icon; if the files are 
  8. in different folders; you will have to put the parent folder in 'list by name' 
  9. mode before the selection. (you can drop the folder too)
  10.  
  11. 2: If you want
  12.  
  13.     a) Compress them in ASCII mode: Hold option and 'a' keys until window appears
  14.     b) Compress them in binary mode: Hold option and 'b' keys until window appears
  15.     c) Uncompress them in ASCII mode: Hold 'a' key until window appears
  16.     d) Uncompress them in binary mode: Hold 'b' key until window appears
  17.  
  18. Note that startup keys can be unnecesary or ignored depending on your settings in the preferences dialog.
  19.  
  20. • What should I put in the 'gzip suffix' preference?
  21.  
  22. For all operating systems, ".gz", ".z", ".Z", ".taz", ".tgz", "-gz", "-z" and "_z" are accepted suffixes, in addition to the value of the --suffix option. (".tgz" is a useful convention for tar.z) -This means that MacGzip can decode files with all these suffixes with its default settings.
  23.  
  24. The --suffix option is the value you enter in 'gzip suffix' preference; so you should let it empty if you are using the standard gzip 1.2.4. (empty in MacGzip means no --suffix)
  25.  
  26. If your UNIX host has an older gzip (which creates compressed files with .z) you should put '.z' in this field of macgzip preferences; but the best option would be to update your UNIX gzip to the last version (currently -02/04/95- is 1.2.4).
  27.  
  28. • What is the meaning of 'ASCII' compression/decompression?
  29.  
  30.      -a --ascii
  31.           Ascii text mode: convert end-of-lines using local  con-
  32.           ventions.  This  option  is supported only on some non-
  33.           Unix systems.
  34.  
  35. let's have the ASCII file 'pc.txt' on an DOS machine
  36.  
  37. we can make:
  38.   gzip -c pc.txt > pc.gz
  39.   gzip -ca pc.txt > pca.gz
  40.  
  41. then, we put this files in our mac and:
  42.   gzip 'uncompress' 'binary' of pc.gz gives us a file with EOL=<CR><LF> (bad)
  43.   gzip 'uncompress' 'binary' of pca.gz gives us a file with EOL=<LF> (bad)
  44.   gzip 'uncompress' 'ascii' of pc.gz gives us a file with EOL=<CR><CR> (bad)
  45.   gzip 'uncompress' 'ascii' of pca.gz gives us a file with EOL=<CR> (good!)
  46.  
  47. • My Mac-dhqx-application does not recognice gunziped files.
  48.  
  49. A file with .hqx suffix IS A TEXT FILE; so it should be uncompressed in ASCII mode. This not only will put 'Macintosh end-of-lines' (which shouldn't make any difference to your debinhexer), but also will set the type of the resulting file to 'TEXT'.
  50.  
  51. Anyway; if you have gunziped your foo.hqx in binary mode; you can use 'StuffIt Expander', since (in Drag&Drop mode) it eats any kind of file.
  52.  
  53. • What is the meaning of 'binary' in 'gzip' menu?
  54.  
  55. Binary means that you get a file which is exactly the same file (byte by byte) which was compressed; you should use this option for any non-text file.
  56.  
  57. If you uncompress a binary file (like a file.tar.gz or a file.tif.gz) in ASCII mode; you will loose the file.
  58.  
  59. If you uncompress a text file (like a file.hqx.gz or a text.gz) in binary mode; you can recover the file in several ways.
  60.  
  61. • MacGzip reports a CRC error!
  62.  
  63. This error appears when the file is corrupted or, most frequently, when the file has been incorrectly transferred
  64.  
  65. Gziped files ARE PURE BINARIES. (raw data, binary, not MacBinary nor ASCII)
  66. When you download a gif file; you set your communications software in binary mode; do the same with gziped files.
  67.  
  68. Here you are a few hints:
  69.  
  70. 1: Fetch
  71.  
  72.     Add the following entries to 'suffix mapping' preferences:
  73.  
  74.        suffix   type    creator    name        transfer  as...
  75.  
  76.         .gz     Gzip     Gzip     gziped           binary
  77.         .tgz    Gzip     Gzip     tar.gz           binary
  78.         .Z      ZIVU     Gzip     compressed       binary
  79.         .z      pZIP     Gzip     pkziped          binary
  80.  
  81. 2: Zterm (I'm not a Zterm user, so I'm not sure about this point)
  82.  
  83. Add strings (using ResEdit or similar) to resources 'STR# 335' and 'STR# 330'
  84.  
  85. Example:
  86.     For gzip files:    1GzipGzip.gz
  87.  
  88. (Read ZTerm documentation for more information)
  89.  
  90.  
  91. 3: Anarchie & Peter Lewis' ftpd
  92.  
  93. By now, they use Fetch Preferences, so get Fetch, and go to point 1
  94.  
  95.  
  96. ===
  97. Note: MacGzip can read Fetch preferences to map suffixes; so even if you don't use Fetch, you should copy a 'Fetch Prefs' file in your Preferences folder.
  98.  
  99.